package vista

import org.uqbar.arena.windows.WindowOwner
import org.uqbar.arena.windows.SimpleWindow
import code._
import org.uqbar.arena.widgets.Panel
import org.uqbar.arena.layout.VerticalLayout
import org.uqbar.arena.widgets.Button
import java.awt.Color
import org.uqbar.arena.windows.Window


class VerRestriccionesEmpleadosWindow(owner: WindowOwner) extends SimpleWindow[Restriccion](owner, new Restriccion(12,4,2014) {

  override def addActions(actionsPanel: Panel) = {
    
  }
  override def createFormPanel(mainPanel: Panel) {

	 // this.setTitle("Ver Restriccion")

     mainPanel.setLayout(new VerticalLayout)

    new Button(mainPanel)
	  .setCaption("Aceptar")
	  //.onClick(new MessageSend(this.getModelObject(), "cambiarNombre"))
      .setBackground(Color.ORANGE)
     
    new Button(mainPanel)
	  .setCaption("Cancelar")
	  //.onClick(new MessageSend(this.getModelObject(), "cambiarNombre"))

  }
}